import {
  reactive
} from '../vue3/reactivity/index';

const state = reactive({
  title: '学生列表',
  classNum: 1,
  total: 2,
  teacher: ['张老师', '李老师'],
  info: {
    a: {
      c: 5
    },
    b: 2
  },
  students: [{
      id: 1,
      name: '小红'
    },
    {
      id: 2,
      name: '小明'
    },
  ]
});

// state.title;
// state.title = '学生列表2';

// state.info.b = 'cc teacher'
// state.info.c = 'haha'

state.students.push({
  id: 5,
  name: '李四'
})

// state.classNum = 13;
// state.info.b = 'FE teacher';
// state.students.push({
//   id: 3,
//   name: '小张'
// });

console.log(state);